package com.haoze.nurse.dao;

import com.haoze.common.mapper.MyMapper;
import com.haoze.nurse.model.PatChaperonageEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface PatChaperonageMapper extends MyMapper<PatChaperonageEntity> {
    Map<String, String> queryNcovReport(@Param("idNum") String idNum);

    Integer selectLastChapNo(@Param("inpatNum") String inpatNum);

    List<Map<String, Object>> selectChapList(@Param("wardId") String wardId,
                                              @Param("beginTime") String beginTime,
                                              @Param("endTime") String endTime);

    /**
     * 查询当前用户
     *
     * @param userId
     * @return
     */
    Map<String, String> getUser(@Param("userId") String userId);

    Map<String, Object> selectPatientInfo(@Param("inpatNum") String inpatNum);

    List<Map<String, Object>> selectUserChapList(@Param("idNum") String idNum);

    List<Map<String, String>> queryInHospitalCount();

    List<Map<String, String>> queryInChapCount();

    List<Map<String, String>> chapCardList(@Param("wardId") String wardId);

    Integer queryInHospitalCountWithWardId(@Param("wardId") String wardId);

    Integer queryInChapCountWithWardId(@Param("wardId") String wardId);

    List<String> selectUnreportChapInSevenDay();

    void updateNcovReport();

    Integer selectChapOrder(@Param("inpatNum") String inpatNum,
                            @Param("patName") String patName);

    void delChapOutpat();

    List<Map<String, Object>> selectRoles(@Param("userId") String userId);

    void updateAllPassAndUnapprove(@Param("chapId") String chapId);
}
